﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="User_Level.aspx.cs" Inherits="V5_EShop.Admin.User.User_Level" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <!--#include file="../inc/libs2.aspx"-->
</head>
<body>
    <table border="0" cellpadding="0" cellspacing="0" class="toptable" width="100%">
        <tr>
            <td class="topnavichar" style="padding-left: 14px">
                <div align="left">
                    位置导航：<a class="list_link" href="../Admin_Index_Main.aspx" target="main">首页</a><img alt=""
                        border="0" src="/sysImages/folder/navidot.gif" />用户等级管理</div>
            </td>
        </tr>
    </table>
    <br />
    <table align="center" border="0" cellpadding="0" cellspacing="0" class="Navitable"
        width="100%">
        <tr>
            <td align="left">
                <a href="User_Level.aspx">用户等级管理</a> | <a href="User_Level.aspx?Action=edit">添加</a>
            </td>
        </tr>
    </table>
    <br />
    <form id="form1" runat="server">
    <div>
        <asp:MultiView ID="MultiViewList" runat="server">
            <asp:View ID="View1" runat="server">
                <asp:GridView ID="gvList" runat="server" GridLines="None" OnRowCommand="gvList_RowCommand"
                    AutoGenerateColumns="False" CssClass="listtable">
                    <HeaderStyle CssClass="headertext" />
                    <Columns>
                        <asp:BoundField DataField="ID" HeaderText="ID">
                            <ItemStyle Width="30px" />
                        </asp:BoundField>
                        <asp:BoundField DataField="GroupName" HeaderText="用户组名称" />
                        <asp:BoundField DataField="Discount" HeaderText="折扣">
                            <ItemStyle Width="50px" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:Button ID="Button1" runat="server" Text="修改" CommandArgument='<%# Bind("ID") %>'
                                    CommandName="go" />
                                <asp:Button ID="Button2" runat="server" Text="删除" CommandArgument='<%# Bind("ID") %>'
                                    CommandName="del" />
                            </ItemTemplate>
                            <ItemStyle Width="150px" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
                <webdiyer:AspNetPager ID="Pager" runat="server" AlwaysShow="True" CustomInfoHTML="共%PageCount%页，当前为第%CurrentPageIndex%页，每页%PageSize%条"
                    FirstPageText="首页" HorizontalAlign="Right" LastPageText="尾页" NextPageText="下一页"
                    OnPageChanged="Pager_PageChanged" PageIndexBoxType="DropDownList" PageSize="20"
                    PrevPageText="上一页" ShowCustomInfoSection="Left" ShowPageIndexBox="Always" SubmitButtonText="Go"
                    TextAfterPageIndexBox="页" TextBeforePageIndexBox="转到">
                </webdiyer:AspNetPager>
            </asp:View>
            <asp:View ID="View2" runat="server">
                <table cellpadding="5" cellspacing="1" class="edittable">
                    <tr>
                        <td colspan="2">
                            <asp:Label ID="lblTitle" runat="server" Text="添加用户等级"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td style="width: 15%;">
                            等级名称
                        </td>
                        <td>
                            <asp:TextBox ID="txtGroupName" runat="server"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            折扣
                        </td>
                        <td>
                            <asp:TextBox ID="txtDiscount" runat="server" Width="44px">100</asp:TextBox>
                            %
                        </td>
                    </tr>
                    <tr>
                        <td align="center" colspan="2">
                            <asp:HiddenField ID="txtID" runat="server" Value="0" />
                            <asp:Button ID="btnSave" runat="server" OnClick="btnSave_Click" Text="添加保存" Style="width: 78px" />
                        </td>
                    </tr>
                </table>
            </asp:View>
        </asp:MultiView>
    </div>
    </form>
</body>
</html>
